import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'

const ProjectRoutes: RouteConfig = {
  path: '/project',
  component: Layout,
  redirect: '/project/index',
  name: 'projectMgr',
  meta: {
    title: 'projectMgr',
    icon: 'tree-table'
  },
  children: [
    {
      path: 'workbench',
      component: () => import(/* webpackChunkName: "workbenchMgr" */ '@/views/project_mgr/workbench/index.vue'),
      name: 'workbenchMgr',
      meta: { title: 'workbenchMgr' }
    },
    {
      path: 'depts',
      component: () => import(/* webpackChunkName: "deptMgr" */ '@/views/project_mgr/dept/index.vue'),
      name: 'deptMgr',
      meta: { title: 'deptMgr' }
    },
    {
      path: 'rooms',
      component: () => import(/* webpackChunkName: "roomMgr" */ '@/views/project_mgr/room/index.vue'),
      name: 'roomMgr',
      meta: { title: 'roomMgr' }
    },
    {
      path: 'sign',
      component: () => import(/* webpackChunkName: "signMgr" */ '@/views/project_mgr/sign/index.vue'),
      name: 'signMgr',
      meta: { title: 'signMgr' }
    },
    {
      path: 'doctor',
      component: () => import(/* webpackChunkName: "doctorMgr" */ '@/views/project_mgr/doctor/index.vue'),
      name: 'doctorMgr',
      meta: { title: 'doctorMgr' }
    },
    // {
    //   path: 'player',
    //   component: () => import(/* webpackChunkName: "playerMgr" */ '@/views/project_mgr/player/index.vue'),
    //   name: 'playerMgr',
    //   meta: { title: 'playerMgr' }
    // },
    // {
    //   path: 'users',
    //   component: () => import(/* webpackChunkName: "hisUsersMgr" */ '@/views/project_mgr/users/index.vue'),
    //   name: 'hisUsersMgr',
    //   meta: { title: 'hisUsersMgr' }
    // }
    {
      path: 'sort',
      component: () => import(/* webpackChunkName: "sortMgr" */ '@/views/project_mgr/sort/index.vue'),
      name: 'sortMgr',
      meta: {
          title: 'sortMgr',
          noCache: true
      }
  }
  ]
}

export default ProjectRoutes
